package com.yxlgateway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yxlcommon.common.dto.LikesDTO;
import com.yxlcommon.common.pojo.Likes;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlcommon.common.vo.LikesVo;

import java.util.List;
import java.util.Map;

/**
 * @author: yxl
 * @since: 2022-04-17
 **/
public interface LikesService extends IService<Likes> {

    void transLikedFromRedisToDB();
    void transLikedCountFromRedisToDB();
    List<Map<String, Object>> selectLikeInfoByType(LikesDTO likesDTO);
    RespBean<Map<String, Object>> selectLike(Likes likes);
    RespBean<Integer> unSave(Likes likes);
    RespBean<List<LikesVo>> selectWorksByLike(Likes likes);
}
